package com.fr.plugin.customloginpage.config;

import com.fr.config.ConfigContext;
import com.fr.config.holder.Conf;
import com.fr.config.holder.factory.Holders;

public class Config extends com.fr.config.DefaultConfiguration {
    private static Config config = null;
    private Conf<CustomConfig> customConfig = Holders.obj(new CustomConfig(), CustomConfig.class);

    public static Config getInstance() {
        if (config == null) {
            config = ConfigContext.getConfigInstance(Config.class);
        }
        return config;
    }

    public String getNameSpace() {
        return "configCustomLoginPage";
    }


    public CustomConfig getCustomConfig() {
        return customConfig.get();
    }

    public void setCustomConfig(CustomConfig customConfig) {
        this.customConfig.set(customConfig);
    }


}